<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('质保金充值')" />
</head>
<body>
    <div class="main-content">
        <form id="form-factory-add" class="form-horizontal">
            <input id="factoryId" name="id" th:value="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label ">本次充值金额：</label>
                <div class="col-sm-8">
                    <input id="addBalance" autocomplete="off" name="addBalance" placeholder="请输入本次充值金额" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
	<th:block th:include="include :: footer" />
    <script type="text/javascript">
        function submitHandler() {
        	if ($.validate.form()) {
                /*$.operate.post(ctx + "zsyh/factory/addBalance", { "addBalance": $("#addBalance").val(),"id":$("#factoryId").val(),"type":"money"});*/
                var data = { "addBalance": $("#addBalance").val(),"id":$("#factoryId").val(),"type":"money" };
                $.operate.submit(ctx + "zsyh/factory/addBalance", "post", "json", data,function () {
                    parent.$("#bootstrap-table").bootstrapTable('refresh',{});
                    $.modal.close();
                });


            }
        }
    </script>
</body>
</html>
